
import { Injectable } from '@angular/core';
import { FormControl } from '@angular/forms';
import { Form, NgFormControl, NgChildForm, NgChildFormArray, NgValidateForm } from '@farris/devkit';
import { DateConverter, MultiLangConverter } from '@farris/kendo-binding';

@Injectable()
@NgValidateForm({
    formGroupName: '支出信息',
    enableValidate: true
})

@Injectable()
export class DetailFormComponentViewmodelForm extends Form {
    @NgFormControl({
        id: 'zcbm_d749e2ae_n8fg',
        name: "{{zcbm_d749e2ae_n8fg}}",
        binding: 'zcbm',
        updateOn: 'blur',
        defaultI18nValue: '支出分类编码',
        validRules: [
            {
                type: 'required',
                constraints: [true],
            },
            {
                type: 'matches',
                constraints: [''],
            }
        ]
    })
    zcbm: FormControl;

    @NgFormControl({
        id: 'zcfl_1e217793_cbrk',
        name: "{{zcfl_1e217793_cbrk}}",
        binding: 'zcfl',
        updateOn: 'blur',
        defaultI18nValue: '支出分类',
        validRules: [
            {
                type: 'required',
                constraints: [true],
            },
            {
                type: 'matches',
                constraints: [''],
            }
        ]
    })
    zcfl: FormControl;

    @NgFormControl({
        id: 'zcrq_7248720c_h68x',
        name: "{{zcrq_7248720c_h68x}}",
        binding: 'zcrq',
        updateOn: 'blur',
        defaultI18nValue: '支出日期',
    })
    zcrq: FormControl;

    @NgFormControl({
        id: 'zcbz_2e90cb79_q6yt',
        name: "{{zcbz_2e90cb79_q6yt}}",
        binding: 'zcbz',
        updateOn: 'blur',
        defaultI18nValue: '支出备注',
    })
    zcbz: FormControl;

}